package topology;

import org.apache.storm.trident.operation.BaseFunction;
import org.apache.storm.trident.operation.TridentCollector;
import org.apache.storm.trident.tuple.TridentTuple;

import java.util.ArrayList;
import java.util.List;

public class IpAreaNumListBolt extends BaseFunction {
    List<Integer> numList=new ArrayList<>();
    @Override
    public void execute(TridentTuple tuple, TridentCollector collector) {

        int num=tuple.getInteger(0);
        numList.add(num);

    }

}
